package com.mao.builderpattern;

public class Main {

    public static void main(String[] args) {
        Computer computer = new Computer.Builder()
                .buildCpu("intel")
                .buildDisplay("三星")
                .buildKeyboard("罗技")
                .build();
        System.out.println(computer.toString());

        Computer computer2 = new Computer.Builder()
                .buildCpu("intel")
                .buildDisplay("三星")
                .buildKeyboard("lenovo")
                .build();
        System.out.println(computer2.toString());

        
    }

}
